#
######## Project settings
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.5)
set (PACKAGE_NAME opencc)
project (${PACKAGE_NAME} CXX)
include (CTest)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
set(CMAKE_MACOSX_RPATH 1)
+ set(CMAKE_CXX_STANDARD 14)
+ set(CMAKE_CXX_STANDARD_REQUIRED ON)
endif()
######## Directory
install(
FILES
- ${CMAKE_BINARY_DIR}/opencc.pc
+ ${CMAKE_CURRENT_BINARY_DIR}/opencc.pc
DESTINATION
${DIR_LIBRARY}/pkgconfig
)
if (ENABLE_GTEST)
if(NOT USE_SYSTEM_GTEST)
- add_subdirectory(deps/gtest-1.11.0)
+ add_subdirectory(deps/gtest-1.12.1)
endif()
enable_testing()
endif()
# Change History of OpenCC
+## Version 1.1.6
+
+2022年12月08日
+
+* 修复python3.11 macos构建 ([#744](https://github.com/BYVoid/OpenCC/pull/744))。
+* Bump gtest 和 benchmark 以与最新的 github runners 一起工作 ([#747](https://github.com/BYVoid/OpenCC/pull/747))。
+
## Version 1.1.5
2022年12月03日
恐韩症 恐韓症
恐高症 恐高症
恐鸡症 恐雞症
+恒生 恒生
+恒指 恒指
+恒大 恒大
恒星周期 恆星週期
恒春野百合 恆春野百合
-恒生指数 恆生指數
-恒生股价指数 恆生股價指數
-恒生银行 恆生銀行
恒言录 恆言錄
恕乏价催 恕乏价催
恙虫 恙蟲
print(("Usage: ", sys.argv[0], "[directory]"))
exit(1)
-dirtectory = sys.argv[1]
-files = glob.glob(dirtectory + "/*")
+directory = sys.argv[1]
+files = glob.glob(directory + "/*")
for filename in files:
print(filename)
sort_items(filename, filename)
# user-defined cascading style sheet that is included after the standard
# style sheets created by doxygen. Using this option one can overrule
# certain style aspects. This is preferred over using HTML_STYLESHEET
-# since it does not replace the standard style sheet and is therefor more
+# since it does not replace the standard style sheet and is therefore more
# robust against future updates. Doxygen will copy the style sheet file to
# the output directory.
# the class node. If there are many fields or methods and many nodes the
# graph may become too big to be useful. The UML_LIMIT_NUM_FIELDS
# threshold limits the number of items for each type to make the size more
-# managable. Set this to 0 for no limit. Note that the threshold may be
+# manageable. Set this to 0 for no limit. Note that the threshold may be
# exceeded by 50% before the limit is enforced.
UML_LIMIT_NUM_FIELDS = 10
{
"name": "opencc",
- "version": "1.1.5",
+ "version": "1.1.6",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "opencc",
- "version": "1.1.5",
+ "version": "1.1.6",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
{
"name": "opencc",
- "version": "1.1.5",
+ "version": "1.1.6",
"description": "Conversion between Traditional and Simplified Chinese",
"author": "Carbo Kuo <byvoid@byvoid.com>",
"license": "Apache-2.0",
/**
* Converts a text and writes to an allocated buffer
- * Please make sure the buffer has sufficent space.
+ * Please make sure the buffer has sufficient space.
* @param input A C-Style std::string (terminated by '\0') to be converted.
* @param output Buffer to write the converted text.
* @return Length of converted text.
/**
* Converts a text and writes to an allocated buffer
- * Please make sure the buffer has sufficent space.
+ * Please make sure the buffer has sufficient space.
* @param input A C-Style std::string limited by a given length to be
* converted.
* @param length Maximal length in byte of the input std::string.
}
/**
- * Returns ture if the character is a line ending or end of file.
+ * Returns true if the character is a line ending or end of file.
*/
static bool IsLineEndingOrFileEnding(const char ch) {
return ch == '\0' || ch == '\n' || ch == '\r';
新的理論被發現了。
金胄不是金色的甲冑。
經理發現後勸諭兩人
-想到自己一緊張就口吃,我就沒胃口喫飯
\ No newline at end of file
+想到自己一緊張就口吃,我就沒胃口喫飯
+恒指最新消息,恒生指數跌破 2 萬點
+恒生銀行和恒大集團發佈財報
\ No newline at end of file
新的理论被发现了。
金胄不是金色的甲胄。
经理发现后劝谕两人
-想到自己一紧张就口吃,我就没胃口吃饭
\ No newline at end of file
+想到自己一紧张就口吃,我就没胃口吃饭
+恒指最新消息,恒生指数跌破 2 万点
+恒生银行和恒大集团发布财报
\ No newline at end of file